package com.kata.chapter4;

/**
 * Created by Solidsnake on 2014/11/17. <br>
 * 初始单例模式 : <br>
 * 一开始就存在的皇帝, 封建帝国产物 <br>
 */
public class InitEmperor {
    private final static InitEmperor target = new InitEmperor();

    private InitEmperor(){
        System.out.println("哥当皇帝了!!");
    }

    public static InitEmperor getEmperor() {
        return target;
    }
}
